import fetch from './fetch'
import Cookie from 'react-cookie'
import storage from './storage'
import C from '../constants'

export function loggedIn(){
    return Cookie.load('token');
}

export function getUserConfigureStatus(){
    return storage.local.get('userConfigureStatus');
}

export function setUserConfigureStatus(status){
    storage.local.set('userConfigureStatus',status)
}

export function fetchUserConfigureStatus(){
    return fetch(C.Api.userConfigureStatus,{method:'POST'})
}
